<script type="text/javascript">
$().ready(function() {
	$("#businessForm").validate({
		errorLabelContainer: $("#businessForm div.error")
	});
});
</script>
<style type="text/css">
.cmxform fieldset p.error label { color: red; }
form.cmxform label.error {
	display: block;
	margin-left: 1em;
	width: auto;
}
</style>
<table width="670" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td class="tabBlue">Sign-up for <?php echo strtoupper($adsType); ?> Listing</td>
	</tr>
	<tr>
		<td class="main_content" style="padding-top: 10px;">
			<form id="businessForm" name="businessForm" action="<?php echo $html->url('/business/register/'.$adsType); ?>" method="post" enctype="multipart/form-data">
			<table width="88%" border="0" align="center" cellpadding="10" cellspacing="0">
				<tr>
					<td colspan="2"><div class="error"></div></td>
				</tr>
				<tr valign="top">
					<td width="110px;"><font color="red">*</font>&nbsp;Lastname:</td>
					<td><input type="text" name="data[register][lastname]" title="Please enter your lastname" class="{required:true}" style="width: 210px;"  /></td>
				</tr>
				<tr valign="top">
					<td><font color="red">*</font>&nbsp;Firstname:</td>
					<td><input type="text" name="data[register][firstname]" title="Please enter your firstname" class="{required:true}" style="width: 210px;"  /></td>
				</tr>
				<tr valign="top">
					<td><font color="red">*</font>&nbsp;Email:</td>
					<td><input type="text" name="data[register][email_address]" title="Please enter your email address" class="{required:true,email:true}" style="width: 210px;"  /></td>
				</tr>
				<tr>
					<td colspan="2" class="borderBottom">&nbsp;</td>
				</tr>
				<tr valign="top">
					<td><font color="red">*</font>&nbsp;Business Name:</td>
					<td><input type="text" name="data[register][business_name]" title="Please enter your business name" class="{required:true}" style="width: 210px;"  /></td>
				</tr>
				<tr valign="top">
					<td>Keywords:</td>
					<td><input type="text" name="data[register][keywords]" style="width: 210px;"  /></td>
				</tr>
				<tr valign="top">
					<td>&nbsp;</td>
					<td><i><font style="font-size: 11px;">ex. Real Estate, Homes, Houses, Buy, Sell</font></i></td>
				</tr>
                <tr valign="top">
                    <td valign="top">Description</td>
                    <td><textarea name="data[register][description]" cols="45" rows="10"></textarea></td>
                </tr>
				<?php
				if ($adsType == 'premium') {
				 ?>
                <tr valign="top">
                    <td valign="top">Category:</td>
                    <td>
                        <div style="padding: 5px;"><?php echo $form->select("category1", $categories, null, array("style" => "width: 210px;", 'title' => 'Please enter your business category', 'class' => '{required:true}'));?></div>
                        <div style="padding: 5px;"><?php echo $form->select("category2", $categories, null, array("style" => "width: 210px;", 'title' => 'Please enter your business category', 'class' => '{required:true}'));?></div>
                        <div style="padding: 5px;"><?php echo $form->select("category3", $categories, null, array("style" => "width: 210px;", 'title' => 'Please enter your business category', 'class' => '{required:true}'));?></div>
                        <div style="padding: 5px;"><?php echo $form->select("category4", $categories, null, array("style" => "width: 210px;", 'title' => 'Please enter your business category', 'class' => '{required:true}'));?></div>
                        <div style="padding: 5px;"><?php echo $form->select("category5", $categories, null, array("style" => "width: 210px;", 'title' => 'Please enter your business category', 'class' => '{required:true}'));?></div>
                        <div style="padding: 5px;"><?php echo $form->select("category6", $categories, null, array("style" => "width: 210px;", 'title' => 'Please enter your business category', 'class' => '{required:true}'));?></div>
                    </td>
                </tr>
                <?php
				     } else if ($adsType == 'enhanced')  {
                 ?>
                <tr valign="top">
                    <td valign="top">Category:</td>
                    <td>
                        <div style="padding: 5px;"><?php echo $form->select("category1", $categories, null, array("style" => "width: 210px;", 'title' => 'Please enter your business category', 'class' => '{required:true}'));?></div>
                        <div style="padding: 5px;"><?php echo $form->select("category2", $categories, null, array("style" => "width: 210px;", 'title' => 'Please enter your business category', 'class' => '{required:true}'));?></div>
                        <div style="padding: 5px;"><?php echo $form->select("category3", $categories, null, array("style" => "width: 210px;", 'title' => 'Please enter your business category', 'class' => '{required:true}'));?></div>
                    </td>
                </tr>
				<?php } else { ?>
                <tr valign="top">
                    <td valign="top">Category:</td>
                    <td>
                        <div style="padding: 5px;"><?php echo $form->select("category1", $categories, null, array("style" => "width: 210px;", 'title' => 'Please enter your business category', 'class' => '{required:true}'));?></div>
                        <div style="padding: 5px;"><?php echo $form->select("category2", $categories, null, array("style" => "width: 210px;", 'title' => 'Please enter your business category', 'class' => '{required:true}'));?></div>
                    </td>
                </tr>
				<?php } ?>
				<tr valign="top">
					<td><font color="red">*</font>&nbsp;Street:</td>
					<td><input type="text" name="data[register][street]" title="Please enter your street" class="{required:true}" style="width: 210px;"  /></td>
				</tr>
				<tr valign="top">
					<td><font color="red">*</font>&nbsp;City:</td>
					<td><input type="text" name="data[register][city]" title="Please enter your city" class="{required:true}" style="width: 210px;"  /></td>
				</tr>
				<tr valign="top">
					<td><font color="red">*</font>&nbsp;State:</td>
					<td><?php echo $form->select("state", $states, null, array("style" => "width: 210px;", 'title' => 'Please enter state where you live', 'class' => '{required:true}')) ?></td>
				</tr>
				<tr valign="top">
					<td><font color="red">*</font>&nbsp;Zip Code:</td>
					<td><input type="text" name="data[register][zipcode]" title="Please enter your zip code" class="{required:true}" style="width: 100px;"  /></td>
				</tr>
				<tr valign="top">
					<td><font color="red">*</font>&nbsp;Business Phone:</td>
					<td><input type="text" name="data[register][business_phone]" title="Please enter business phone" class="{required:true}" style="width: 210px;"  /></td>
				</tr>
				<tr valign="top">
					<td>Contact Person:</td>
					<td><input type="text" name="data[register][contact_person]" style="width: 210px;"  /></td>
				</tr>
				<?php if ($adsType == 'premium' || $adsType == 'enhanced') { ?>
				<tr valign="top">
					<td>Website:</td>
					<td><input type="text" name="data[register][website]" value="http://" style="width: 210px;"  /></td>
				</tr>
				<?php }
				if ($adsType == 'premium') {
				?>
				<tr valign="top">
					<td>Graphic to Upload:</td>
					<td>
						<input type="file" name="data[register][Image]"><p>JPG, GIF or BMP only.<br/>File size must be no larger than 1MB</p>
					</td>
				</tr>
				<?php } ?>
				<tr>
					<td>&nbsp;</td>
					<td><input type="image" src="/lds/themed/skin2/img/btn-signup.gif" name="submit"></td>
				</tr>
				<tr>
					<td colspan="2"><font style="color: #d10000; font-size: 12px;">Asterisk (*) denotes required fields</font></td>
				</tr>
			</table>
			</form>
		</td>
	</tr>
	<tr>
		<td><?php echo $html->image('tab-blue-bottom.gif', array('width' => 670, 'height' => 43)); ?></td>
	</tr>
</table>